@import url("./assets/iconfont/iconfont.css");
.App{
  width: 100%;
  min-height: 100%;
  background-color: #f3f3f3;
  .playing_music{
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
  }
  .header_box{
    width: 100%;
    background-color: #FFF;
    .header {
      background-color: #FFF;
      max-width: 1330px;
      border-bottom: 1px solid #f2f2f2;
      height: 70px;
      margin: 0 auto;
      position: relative;
      display: flex;
      justify-content: space-between;
      padding-right: 220px;
      box-sizing: border-box;
      font-size: 22px;
      line-height: 70px;
      .logo_box{
        cursor: pointer;
        overflow: hidden;
        height: 100%;
        height: 100%;
        min-width: 110px;
        .logo{
          width: 35px;
          position: absolute;
          left: 0;
          top: 50%;
          transform: translateY(-50%);
        }
        .logo_title{
          color: #212121;
          margin-left: 59px;
        }
      }
      .top_nav {
        flex: 1;
        text-align: center;
        color: #FFF;
        background-color: #31c27c;
        font-weight: bold;
        margin: 0 20px;
      }
      .search_box{
        height: 100%;
        position: relative;
        // line-height: 70px;
        color: #919191;
        font-size: 17px;
        position: relative;
        .search{
          width: 242px;
          height: 42px;
          outline: none;
          border: 1px solid #d4d4d4;
          padding-left: 13px;
          border-radius: 3px;
          transition: all .4s;
          padding-right: 40px;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          word-break: break-all;
          &:focus {
            transition: all .4s;
            border-color: #31c27c;
          }
        }
        .del_btn {
          position: absolute;
          top: 0;
          right: 34px;
          cursor: pointer;
          transition: all .4s;
          font-weight: bold;
          span {
            color: #adacac;
            transition: all .4s;
            font-size: 14px;
          }
          &:hover span{
            transition: all .4s;
            font-size: 15px;
            color: #31c27c;
          }
          &.hidden {
            display: none;
          }
        }
        .search_btn {
          position: absolute;
          top: 0;
          right: 14px;
          cursor: pointer;
          transition: color .4s;
          font-weight: bold;
          &:hover{
            transition: color .4s;
            color: #31c27c;
          }
        }
        .search_hot_box {
          position: absolute;
          z-index: 11;
          top: 58px;
          width: 100%;
          height: 400px;
          transition: all .4s;
          overflow: hidden;
          border: 1px solid #d4d4d4;
          border-top: none;
          box-sizing: border-box;
          line-height: 40px;
          .search_hot_data{
            height: 10%;
            background-color: #FFF;
            display: flex;
            justify-content: space-between;
            cursor: pointer;
            padding-right: 10px;
            box-sizing: border-box;
            &:hover .search_hot_name{
              color: #31c27c;
            }
            .search_hot_data_left{
              color: #FF0036;
              img {
                height: 33%;
                width: auto;
                margin-left: 10px;
                margin-right: 5px;
                margin-top: 8px;
              }
            }
            .search_hot_name {
              color: #212121;
            }
          }
        }
        .search_hot_box.hidden {
          transition: all .4s;
          height: 0;
          border-bottom: none;
        }
        .keywords_search_box {
          position: absolute;
          z-index: 11;
          top: 58px;
          width: 100%;
          height: 400px;
          line-height: 40px;
          transition: all .4s;
          overflow: hidden;
          border-top: none;
          box-sizing: border-box;
          .keywords_search_null{
            border: 1px solid #d4d4d4;
            border-top: none;
            height: 10%;
            background-color: #FFF;
            color: #212121;
            text-align: center;
          }
          .keywords_search_data{
            height: 10%;
            background-color: #FFF;
            color: #212121;
            border-left: 1px solid #d4d4d4;
            border-right: 1px solid #d4d4d4;
            cursor: pointer;
            padding-right: 10px;
            box-sizing: border-box;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            word-break: break-all;
            padding: 0 10px;
            &:hover{
              color: #31c27c;
            }
            &:last-child{
              border-bottom: 1px solid #d4d4d4;
            }
          }
          &.hidden {
            transition: all .4s;
            height: 0;
            border-bottom: none;
          }
        }
      }
      .study_box {
        position: absolute;
        right: 0;
        width: 220px;
        text-align: center;
        height: 70px;
        line-height: 70px;
        font-size: 18px;
        .study_img {
          width: 40px;
          border-radius: 50%;
          position: absolute;
          left: 20px;
          top: 50%;
          transform: translateY(-50%);
        }
        a {
          text-align: right;
          display: block;
          width: 100%;
          // margin-right: 20px;
        }
      }
    }
  }
  .place_holder {
    height: 100%;
    height: 77px;
  }
}
@media screen and (max-width: 900px) {
  .App{
    .header_box{
      .header{
        height: 50px;
        font-size: 14px;
        font-size: 14px;
        line-height: 50px;
        padding-right: 10px;
        .logo_box{
          min-width: 70px;
          .logo{
            width: 25px;
            left: 10px;
          }
          .logo_title {
            margin-left: 40px;
          }
        }
        .top_nav{
          margin: 0 5px;
          min-width: 65px;
          margin-right: 10px;
        }
        .search_box{
          font-size: 12px;
          .search {
            box-sizing: border-box;
            height: 35px;
            width: 100px;
            min-width: 10px;
            padding-right: 40px;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            word-break: break-all;
            &:focus {
              width: 190px;
            }
          }
          .del_btn {
            right: 22px;
          }
          .search_btn {
            right: 4px;
          }
          .search_hot_box {
            top: 42px;
            height: 250px;
            line-height: 25px;
          }
          .keywords_search_box {
            top: 42px;
            height: 250px;
            line-height: 25px;
          }
        }
        .study_box {
          display: none;
        }
      } 
    }
  } 
}